import java.rmi.*;
import java.rmi.registry.*;
import java.rmi.server.*;

public class subtract_number_provider extends UnicastRemoteObject implements subtract_service {
	
	public subtract_number_provider() throws RemoteException {
		super();
	}
	
	public String subtract(String s1, String s2) {
		String result = "";
		try {
			int n1 = Integer.parseInt(s1);
			int n2 = Integer.parseInt(s2);
			result = Integer.toString(n1-n2);
		} catch (NumberFormatException e) {
			System.err.printf("%s and %s must both be integers\n", s1, s2);
			result = "FALSE";
		}
		return result;
	}
}
